<?php
// *** Tangra (Application Framework and Tools for PHP)
// $Id$
//

require_once(TANGRA_MAIN_DIR.'interfaces/i_exception_listener.class.php');
require_once(TANGRA_MAIN_DIR.'core/debug.inc.php');


class Exception_Listener_Screeen extends Tangra_Class implements I_Exception_Listener {
	public function error(Exception $e) {
		if (php_sapi_name() != 'cli') {
			exception_html_print($e);
		} else {
			println($e->getMessage());
		}
	}
}


